﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.Entities
{
    /// <summary>
    /// 商品表
    /// </summary>
    public class Good
    {
        [Key]
        public int ProductId { get; set; }
        /// <summary>
        /// 商品条码。
        /// </summary>
        public string? Barcode { get; set; }
        /// <summary>
        /// 商品的名称。
        /// </summary>
        public string? ProductName { get; set; }
        /// <summary>
        /// 商品的规格。
        /// </summary>
        public string? Standard { get; set; }

        /// <summary>
        /// 商品的型号。
        /// </summary>
        public string? ProductModel { get; set; }
        /// <summary>
        /// 商品的颜色。
        /// </summary>
        public string? ProductColor { get; set; }
        /// <summary>
        /// 商品重量
        /// </summary>
        public decimal? ProductWeight { get; set; }
        /// <summary>
        /// 商品保质期
        /// </summary>
        public string? ProductExpirationDate { get; set; }
        /// <summary>
        /// 商品类型的 ID。
        /// </summary>
        public long? CategoryId { get; set; }
        /// <summary>
        /// 商品的制造商。
        /// </summary>
        public string? Mfrs { get; set; }
        /// <summary>
        /// 商品的单个单位。
        /// </summary>
        public string? Unit { get; set; }
        /// <summary>
        /// 商品的库存
        /// </summary>
        public int? repertory { get; set; }
        /// <summary>
        /// 采购价
        /// </summary>
        public decimal? purchasePrice { get; set; }
        /// <summary>
        /// 零售价
        /// </summary>
        public decimal? retailPrice { get; set; }
        /// <summary>
        /// 销售价
        /// </summary>
        public decimal? SalePrice { get; set; }
        /// <summary>
        /// 最低售价
        /// </summary>
        public decimal? LastMinPrice { get; set; }

        /// <summary>
        /// 商品是否启用，0 表示禁用，1 表示启用。
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 删除标记，0 表示未删除，1 表示已删除，默认 0。
        /// </summary>
        public string? DeleteFlag { get; set; }
    }
}
